import {
  createSSRApp
} from "vue";
import App from "./App.vue";
import {
  createPinia
} from "pinia";
import plugins from "./plugins";
import "./permission";
import "@/assets/font/iconfont.css";
import { cool } from "@/uni_modules/cool-unix";

export function createApp() {
  const pinia = createPinia();
  const app = createSSRApp(App);

  app.use(pinia);
  app.use(plugins);
  app.use(cool);
  return {
    app
  };
}
